x86: minor cleanup of code that writes to TSC
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 23 Sep 2009 17:19:30 +0000 (18:19 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 23 Sep 2009 17:19:30 +0000 (18:19 +0100)
commitf122b61851c45ad225bd65edd5c71fb0491dd730
tree1a5718d135f65598c654a5d1d4a22cb528b2bdc2
parent8e2e3454dd0ce408cab0d3107f7388eb56fa32d4
x86: minor cleanup of code that writes to TSC

While working on TSC-handling code, I missed an important
piece of code that writes to TSC because it does it
differently than other pieces of code.  Fix that,
and also cleanup a bit to avoid hardcoded constants
and use wrmsrl instead of wrmsr plus handwritten 64-bit
dismembering code.

Signed-off-by: Dan Magenheimer <dan.magenheimer@oracle.com>
xen/arch/x86/smpboot.c
xen/arch/x86/time.c
xen/include/asm-x86/msr.h